<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品列表</title>
</head>
<body>
    <div style="color: red">
    当前用户为：<span th:text="${userName}">null</span>
    </div>
    <h3>商品1</h3>
    <h3>商品2</h3>
    <h3>商品3</h3>
</body>
</html>